import {LOGOUT, LOGIN, AddMenuAction} from "./constants"
import { IAction } from "./types"

export function loginAction(user: object): IAction {
    return {
        type: LOGIN,
        user
    }
}

export function logoutAction(user: object): IAction {
    return {
        type: LOGOUT,
        user
    }
}

export function addMenuAction(menu: object): IAction {
    return {
        type: AddMenuAction,
        menu
    }
}


